package com.yuke.cloud.service.wmc.service;

import com.github.pagehelper.PageInfo;
import com.yuke.cloud.common.core.support.IService;
import com.yuke.cloud.service.api.pmc.dto.ProdSpecInfoExDto;
import com.yuke.cloud.service.api.pmc.dto.ProdStorageDto;
import com.yuke.cloud.service.wmc.dto.WmsPurchaseOrderDto;
import com.yuke.cloud.service.wmc.dto.WmsStorageRecordDto;
import com.yuke.cloud.service.wmc.entity.WmsStorageRecord;

import java.util.List;
import java.util.concurrent.CompletableFuture;


/**
 * Created by zn on 2020/12/25.
 */
public interface WmsStorageRecordService extends IService<WmsStorageRecord> {

    Integer addList(WmsStorageRecordDto wmsStorageRecordDto);

    CompletableFuture<Integer> addStorageRecorder(ProdStorageDto prodStorageDto,List<ProdSpecInfoExDto> prodSpecInfoExDtoList);

    CompletableFuture<Integer> updateWmsStorageRecorder(WmsPurchaseOrderDto wmsPurchaseOrderDto);

    Integer updateRecorder(WmsStorageRecord wmsStorageRecord,Integer num);

    Integer updateByWmsStorageRecord(WmsStorageRecord wmsStorageRecord);

    PageInfo<WmsStorageRecordDto> selectByCondition(WmsStorageRecordDto wmsStorageRecordDto, Integer page, Integer size);
}
